package com.cc.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MessageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MessageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andPlanTaskIdIsNull() {
            addCriterion("plan_task_id is null");
            return (Criteria) this;
        }

        public Criteria andPlanTaskIdIsNotNull() {
            addCriterion("plan_task_id is not null");
            return (Criteria) this;
        }

        public Criteria andPlanTaskIdEqualTo(Integer value) {
            addCriterion("plan_task_id =", value, "planTaskId");
            return (Criteria) this;
        }

        public Criteria andPlanTaskIdNotEqualTo(Integer value) {
            addCriterion("plan_task_id <>", value, "planTaskId");
            return (Criteria) this;
        }

        public Criteria andPlanTaskIdGreaterThan(Integer value) {
            addCriterion("plan_task_id >", value, "planTaskId");
            return (Criteria) this;
        }

        public Criteria andPlanTaskIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("plan_task_id >=", value, "planTaskId");
            return (Criteria) this;
        }

        public Criteria andPlanTaskIdLessThan(Integer value) {
            addCriterion("plan_task_id <", value, "planTaskId");
            return (Criteria) this;
        }

        public Criteria andPlanTaskIdLessThanOrEqualTo(Integer value) {
            addCriterion("plan_task_id <=", value, "planTaskId");
            return (Criteria) this;
        }

        public Criteria andPlanTaskIdIn(List<Integer> values) {
            addCriterion("plan_task_id in", values, "planTaskId");
            return (Criteria) this;
        }

        public Criteria andPlanTaskIdNotIn(List<Integer> values) {
            addCriterion("plan_task_id not in", values, "planTaskId");
            return (Criteria) this;
        }

        public Criteria andPlanTaskIdBetween(Integer value1, Integer value2) {
            addCriterion("plan_task_id between", value1, value2, "planTaskId");
            return (Criteria) this;
        }

        public Criteria andPlanTaskIdNotBetween(Integer value1, Integer value2) {
            addCriterion("plan_task_id not between", value1, value2, "planTaskId");
            return (Criteria) this;
        }

        public Criteria andRecipientIdIsNull() {
            addCriterion("recipient_id is null");
            return (Criteria) this;
        }

        public Criteria andRecipientIdIsNotNull() {
            addCriterion("recipient_id is not null");
            return (Criteria) this;
        }

        public Criteria andRecipientIdEqualTo(String value) {
            addCriterion("recipient_id =", value, "recipientId");
            return (Criteria) this;
        }

        public Criteria andRecipientIdNotEqualTo(String value) {
            addCriterion("recipient_id <>", value, "recipientId");
            return (Criteria) this;
        }

        public Criteria andRecipientIdGreaterThan(String value) {
            addCriterion("recipient_id >", value, "recipientId");
            return (Criteria) this;
        }

        public Criteria andRecipientIdGreaterThanOrEqualTo(String value) {
            addCriterion("recipient_id >=", value, "recipientId");
            return (Criteria) this;
        }

        public Criteria andRecipientIdLessThan(String value) {
            addCriterion("recipient_id <", value, "recipientId");
            return (Criteria) this;
        }

        public Criteria andRecipientIdLessThanOrEqualTo(String value) {
            addCriterion("recipient_id <=", value, "recipientId");
            return (Criteria) this;
        }

        public Criteria andRecipientIdLike(String value) {
            addCriterion("recipient_id like", value, "recipientId");
            return (Criteria) this;
        }

        public Criteria andRecipientIdNotLike(String value) {
            addCriterion("recipient_id not like", value, "recipientId");
            return (Criteria) this;
        }

        public Criteria andRecipientIdIn(List<String> values) {
            addCriterion("recipient_id in", values, "recipientId");
            return (Criteria) this;
        }

        public Criteria andRecipientIdNotIn(List<String> values) {
            addCriterion("recipient_id not in", values, "recipientId");
            return (Criteria) this;
        }

        public Criteria andRecipientIdBetween(String value1, String value2) {
            addCriterion("recipient_id between", value1, value2, "recipientId");
            return (Criteria) this;
        }

        public Criteria andRecipientIdNotBetween(String value1, String value2) {
            addCriterion("recipient_id not between", value1, value2, "recipientId");
            return (Criteria) this;
        }

        public Criteria andContentIsNull() {
            addCriterion("content is null");
            return (Criteria) this;
        }

        public Criteria andContentIsNotNull() {
            addCriterion("content is not null");
            return (Criteria) this;
        }

        public Criteria andContentEqualTo(String value) {
            addCriterion("content =", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotEqualTo(String value) {
            addCriterion("content <>", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThan(String value) {
            addCriterion("content >", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThanOrEqualTo(String value) {
            addCriterion("content >=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThan(String value) {
            addCriterion("content <", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThanOrEqualTo(String value) {
            addCriterion("content <=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLike(String value) {
            addCriterion("content like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotLike(String value) {
            addCriterion("content not like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentIn(List<String> values) {
            addCriterion("content in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotIn(List<String> values) {
            addCriterion("content not in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentBetween(String value1, String value2) {
            addCriterion("content between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotBetween(String value1, String value2) {
            addCriterion("content not between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andLinkMethodIsNull() {
            addCriterion("link_method is null");
            return (Criteria) this;
        }

        public Criteria andLinkMethodIsNotNull() {
            addCriterion("link_method is not null");
            return (Criteria) this;
        }

        public Criteria andLinkMethodEqualTo(String value) {
            addCriterion("link_method =", value, "linkMethod");
            return (Criteria) this;
        }

        public Criteria andLinkMethodNotEqualTo(String value) {
            addCriterion("link_method <>", value, "linkMethod");
            return (Criteria) this;
        }

        public Criteria andLinkMethodGreaterThan(String value) {
            addCriterion("link_method >", value, "linkMethod");
            return (Criteria) this;
        }

        public Criteria andLinkMethodGreaterThanOrEqualTo(String value) {
            addCriterion("link_method >=", value, "linkMethod");
            return (Criteria) this;
        }

        public Criteria andLinkMethodLessThan(String value) {
            addCriterion("link_method <", value, "linkMethod");
            return (Criteria) this;
        }

        public Criteria andLinkMethodLessThanOrEqualTo(String value) {
            addCriterion("link_method <=", value, "linkMethod");
            return (Criteria) this;
        }

        public Criteria andLinkMethodLike(String value) {
            addCriterion("link_method like", value, "linkMethod");
            return (Criteria) this;
        }

        public Criteria andLinkMethodNotLike(String value) {
            addCriterion("link_method not like", value, "linkMethod");
            return (Criteria) this;
        }

        public Criteria andLinkMethodIn(List<String> values) {
            addCriterion("link_method in", values, "linkMethod");
            return (Criteria) this;
        }

        public Criteria andLinkMethodNotIn(List<String> values) {
            addCriterion("link_method not in", values, "linkMethod");
            return (Criteria) this;
        }

        public Criteria andLinkMethodBetween(String value1, String value2) {
            addCriterion("link_method between", value1, value2, "linkMethod");
            return (Criteria) this;
        }

        public Criteria andLinkMethodNotBetween(String value1, String value2) {
            addCriterion("link_method not between", value1, value2, "linkMethod");
            return (Criteria) this;
        }

        public Criteria andParamStrIsNull() {
            addCriterion("param_str is null");
            return (Criteria) this;
        }

        public Criteria andParamStrIsNotNull() {
            addCriterion("param_str is not null");
            return (Criteria) this;
        }

        public Criteria andParamStrEqualTo(String value) {
            addCriterion("param_str =", value, "paramStr");
            return (Criteria) this;
        }

        public Criteria andParamStrNotEqualTo(String value) {
            addCriterion("param_str <>", value, "paramStr");
            return (Criteria) this;
        }

        public Criteria andParamStrGreaterThan(String value) {
            addCriterion("param_str >", value, "paramStr");
            return (Criteria) this;
        }

        public Criteria andParamStrGreaterThanOrEqualTo(String value) {
            addCriterion("param_str >=", value, "paramStr");
            return (Criteria) this;
        }

        public Criteria andParamStrLessThan(String value) {
            addCriterion("param_str <", value, "paramStr");
            return (Criteria) this;
        }

        public Criteria andParamStrLessThanOrEqualTo(String value) {
            addCriterion("param_str <=", value, "paramStr");
            return (Criteria) this;
        }

        public Criteria andParamStrLike(String value) {
            addCriterion("param_str like", value, "paramStr");
            return (Criteria) this;
        }

        public Criteria andParamStrNotLike(String value) {
            addCriterion("param_str not like", value, "paramStr");
            return (Criteria) this;
        }

        public Criteria andParamStrIn(List<String> values) {
            addCriterion("param_str in", values, "paramStr");
            return (Criteria) this;
        }

        public Criteria andParamStrNotIn(List<String> values) {
            addCriterion("param_str not in", values, "paramStr");
            return (Criteria) this;
        }

        public Criteria andParamStrBetween(String value1, String value2) {
            addCriterion("param_str between", value1, value2, "paramStr");
            return (Criteria) this;
        }

        public Criteria andParamStrNotBetween(String value1, String value2) {
            addCriterion("param_str not between", value1, value2, "paramStr");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreatePartyIsNull() {
            addCriterion("create_party is null");
            return (Criteria) this;
        }

        public Criteria andCreatePartyIsNotNull() {
            addCriterion("create_party is not null");
            return (Criteria) this;
        }

        public Criteria andCreatePartyEqualTo(String value) {
            addCriterion("create_party =", value, "createParty");
            return (Criteria) this;
        }

        public Criteria andCreatePartyNotEqualTo(String value) {
            addCriterion("create_party <>", value, "createParty");
            return (Criteria) this;
        }

        public Criteria andCreatePartyGreaterThan(String value) {
            addCriterion("create_party >", value, "createParty");
            return (Criteria) this;
        }

        public Criteria andCreatePartyGreaterThanOrEqualTo(String value) {
            addCriterion("create_party >=", value, "createParty");
            return (Criteria) this;
        }

        public Criteria andCreatePartyLessThan(String value) {
            addCriterion("create_party <", value, "createParty");
            return (Criteria) this;
        }

        public Criteria andCreatePartyLessThanOrEqualTo(String value) {
            addCriterion("create_party <=", value, "createParty");
            return (Criteria) this;
        }

        public Criteria andCreatePartyLike(String value) {
            addCriterion("create_party like", value, "createParty");
            return (Criteria) this;
        }

        public Criteria andCreatePartyNotLike(String value) {
            addCriterion("create_party not like", value, "createParty");
            return (Criteria) this;
        }

        public Criteria andCreatePartyIn(List<String> values) {
            addCriterion("create_party in", values, "createParty");
            return (Criteria) this;
        }

        public Criteria andCreatePartyNotIn(List<String> values) {
            addCriterion("create_party not in", values, "createParty");
            return (Criteria) this;
        }

        public Criteria andCreatePartyBetween(String value1, String value2) {
            addCriterion("create_party between", value1, value2, "createParty");
            return (Criteria) this;
        }

        public Criteria andCreatePartyNotBetween(String value1, String value2) {
            addCriterion("create_party not between", value1, value2, "createParty");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNull() {
            addCriterion("create_user_id is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNotNull() {
            addCriterion("create_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdEqualTo(Integer value) {
            addCriterion("create_user_id =", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotEqualTo(Integer value) {
            addCriterion("create_user_id <>", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThan(Integer value) {
            addCriterion("create_user_id >", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("create_user_id >=", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThan(Integer value) {
            addCriterion("create_user_id <", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("create_user_id <=", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIn(List<Integer> values) {
            addCriterion("create_user_id in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotIn(List<Integer> values) {
            addCriterion("create_user_id not in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdBetween(Integer value1, Integer value2) {
            addCriterion("create_user_id between", value1, value2, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("create_user_id not between", value1, value2, "createUserId");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}